package com.xzy.service;

import com.xzy.custom.Page;
import com.xzy.entities.BookRepertory;
import com.xzy.web.form.BookRepertoryForm;

import java.util.List;

/**
 * TODO
 *
 * @author XiangZhongyi
 * ClassName: BookRepertoryService
 * date: 2022/1/23 11:49
 */
public interface BookRepertoryService {

    Integer findBookRepertoryCount(Page page,String name);

    List<BookRepertory> findAllBookRepertory(Page page,String name);

    BookRepertory findById(Integer id);

    void updateById(BookRepertoryForm form);

    void insertRepertory(BookRepertoryForm form);

    void deleteById(int parseInt);

    BookRepertory findByBookId(Integer bookId);

    void updateByBookId(BookRepertory bookRepertory,Integer bookId);

    void updateQuantity(Integer quantity, Integer bookId);
}
